MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: A mobile application developer completed a successful installation of the Worklight-CLI (Command Line Interface) on their local environment.What does the application developer need to do to ensure that the worklightand wlcommands are in the system path?
Question2: An application developer is testing an adapter that is retrieving data from a remote database. The developer can find no problems with the adapter and seems to be retrieving data from the database as designed. The quality assurance team insists that users are seeing each other's data.Which adapter configuration setting does the application developer need to set to resolve this issue?
Question3: An application developer wants to test the application inside Worklight Studio but with an external Liberty profile. Using the RUN As > Build Settings and Deploy Targetcommand, the application developer configured the Worklight Server with the external Liberty profile.Before the application developer can connect the application in Worklight Studio to an existing Liberty profile, which of the following must the application developer verify?
Question4: An application developer is using JSONStore in a mobile application to store purchase orders. The application allows sellers to modify the status of an order.The JSONStore collection for the orders is defined in a global variable as follows:var ordCollection = {orders: {searchFields: {ord_number: 'integer', status: 'string' }}};Which of the following JavaScript functions can the application developer use to change the status of an order in the local JSONStore?
Question5: An application developer wants to create a mobile pattern for reuse by other projects. The developer uses the UI Pattern to create the new template which generates the pattern.html file that needs to be edited.In which directory can the application developer find the pattern.html file that was created?
Question6: An application developer is developing a hybrid mobile application that works with an Android environment.Before moving the application to real devices, the application developer needs to verify that it runs without errors on different Android API Levels in the Android Virtual Device Manager.What is the minimum Android API level that the application developer should install which is supported on IBM Worklight Foundation to test the application?
Question7: An application developer intends to use Worklight iOS native APIs to develop a mobile application. A Worklight iOS native API is added to the Worklight project.Which file does the application developer need to copy to the native iOS application project to connect to the Worklight server?
Question8: An application developer needs to automate the creation, execution, and analysis of functional tests for a Worklight hybrid application on Android and iOS devices using IBM Mobile Test Workbench for Worklight.The application developer has successfully installed IBM Mobile Test Workbench for Worklight. What does the application developer need to do next to complete the environment set up?Install and configure the:
Question9: An application developer needs to install IBM Worklight Studio Edition V6.2.Which of the following environment setups will enable the application developer to carry out a successful installation?
Question10: The following is part of a HTTP adapter invocation result.{"college":{"class":{" description": "Class object"" student": {" description": "Students marks details"," title":Top Stories"} ," studentmarks": [{" name": "Mirjana Lucic-Baroni."," marks": "90"," level": "Level one"}{" name": "Rose Way."," marks": "87"," level": "null"}]}}}An application developer needs to send only the 'name' and 'marks' information to a mobile application using the adapter xsl file.Which xsl file code snippet will enable the application developer to achieve this?
Question11: An application developer is creating a WorkLight project that contains a Native API application. When creating the Native API application, the developer has provided the Project name as well as the native API name. The developer is now presented with an option to choose which specific environment they would like to create the Native API for.Which environment types are the supported options for a valid Native API application that the application developer can choose from?
Question12: An application developer wants to protect their application against specific malware and repackaging attacks by implementing application authenticity testing via the console. Per the requirements, the developer wishes to implement a check where the Worklight Server will test the authenticity of an application. If the application fails the authenticity check, the Worklight Server will output a message to the log containing relevant information, but the application will still run as expected.Which type of application authenticity should the application developer implement via the console with the above requirements?
Question13: An application developer has developed a mobile web application that uses a large number of resources.The application developer intends to improve the startup time of the application.To do so, which technique should the application developer use?
Question14: A mobile application developer intends to use JSONStore to encrypt local data of an application.What does the application developer need to do to ensure data is encrypted?When using:
Question15: An application developer intends to use Worklight Android native APIs to develop a performance intensive mobile application.Which one of the following permissions in AndroidManifest.xml should the application developer use so the application can communicate with the Worklight Server?
Question16: An application developer is concerned about the performance of JSONStore API in a native iOS application and would like to collect that information.Which code snippet will enable the application developer to accomplish this?
Question17: An application developer has been given the Geo-location service requirement of most accurate and timely position informationfor a mobile application.Which code snippet will enable the application developer to correctly implement this requirement?
Question18: An application developer is developing an Android based Hybrid application but the application is returning an error on the startup process.What are two valid initialization failure statuses that the application developer can identify on the startup process?
Question19: An application developer is using Unstructured Supplementary Service Data (USSD) on a mobile application that is configured to send a USSD message with the information that is going to be stored on the server. After the information is stored, the application developer needs to configure a custom response message for the application that will send the text "Success" to the user.Which is the correct code implementation that the application developer can use to return the expected response message to the user?
Question20: An application developer is working on a mobile application for a bank. The requirement is to globalize this application to display user messages, currency, date and time according to the locale and language settings on the device.Which Worklight APIs can the application developer use to detect the specific device locale and language?
Question21: An application developer needs to create a SQL adapter, with the name MyAdapter, to retrieve and update data in the database.Using the Command Line Interface tool, what command should the application developer use to create the SQL adapter?
Question22: An application developer is developing a Worklight project using Worklight CLI commands. The project has one adapter called "servicesAdapter" and two applications called "app1" and "app2".The application developer has just created the Worklight server with command:$ wl create-serverWhich commands does the application developer need to execute in the root folder of the Worklight project in order to build the adapter and the applications, and deploy them to the local test server?
Question23: An application developer is working with the Worklight administrator to secure a mobile application using adapter based authentication. The administrator provides the following configuration in the authenticationConfig.xmlfile.< securityTests>< customSecutityTest name="AuthenticationAdapter-securityTest">< test isInternalUserID="true" realm="AdapterAuthRealm"/>< /customSecutityTest></secutityTests>< realms>< realm loginModule="AdapterAuthLoginModule" name="AdapterAuthRealm">< className>com.worklight.integration.auth.AdapterAuthenticator</className>< parameter name="login-function" value="AuthAdapter.onAuthRequired"/>< parameter name="logout-function" value="AuthAdapter.onLogout"/>< /realm>< realms>< loginModules>< loginModule name="AdapterAuthLoginModule">< className>com.worklight.core.auth.ext.NonValidatingLoginModule</className></loginModule></loginModules>What must the application developer do to ensure security is enforced as required?
Question24: An application developer intends to submit a notification to all the device subscriptions of a specified user using IBM Worklight Server side APIs.Which JavaScript server side method will enable the application developer to accomplish this task?
Question25: An application developer is building a hybrid application to be deployed to multiple environment types. The developer has built out a lot of the base code using the common environment and now wants to add support for platform specific environments.When creating new environments inside of Worklight Studio for this application, from which environment categories will the application developer be able to choose platform-specific environments?
Question26: Before deploying the application to production, the application developer wants to test the application on a physical device.After connecting the device via a USB cable to the computer where the application will be tested, which of the following required actions must the application developer perform in order to test the application on a device?
Question27: An application developer needs to detect when the mobile device has lost network connectivity. To do so, the developer has added a listener for event WL.Events.WORKLIGHT_IS_DISCONNECTED.When will the application developer be notified of the loss of connectivity if the heartbeat is not enabled?
Question28: An application developer is migrating a mobile hybrid application to support IBM Worklight Foundation V6.2 to release to the Application Store. The developer wants to reduce logging output to a minimum as the application will be running on mobile devices and no one will be accessing the logs.How should the application developer minimize the application logging?
Question29: An application developer is required to use SMS notifications to send confirmation code to a mobile phone.Which of the following is a valid entry in SMSConfig.xml that the application developer should use if the SMS gateway expects an HTTP post in the following format to forward SMS messages to a mobile phone:http://hostname:13011/cgi-bin/sendsms?to=123456789&text=messagetext&username=user&password=pwd
Question30: An application developer is developing a hybrid application that retrieves data from a back-end server using a HTTP adapter.Which client-side implementation should the application developer use in order to invoke this adapter?
Question31: The application developer wants to use raw data reports to obtain usage information about the applications and adapters.To enable raw data reports feature, the application developer needs to:
Question32: An application developer has created a hybrid application and is in the process of adding a platform- specific environment for iPhone.When the application developer adds the new environment for iPhone, what folders will automatically be created under the /apps/{Application_name}/iphone folder once the platform environment has been built?
Question33: An application developer is developing a project in Worklight Studio that has one adapter and a hybrid application that has Android and iPhone environments.When the application developer builds the application using the 'Build All environments' command, what are the complete set of artifacts created?
Question34: An application developer needs to invoke Android native code from Javascript using Apache Cordova API.Which method signature should the application developer use?
Question35: An application developer needs to send data to an iOS native page that will use the data that the user captured on a new web page. To accomplish this task, the developer needs to verify that the native page is implemented as an Objective-C class that inherits from a specific iOS class.What is the name of the class the application developer must verify that the native page should inherit from?
Question36: An application developer is concerned about how many requests may hit the adapter being created. The developer wants to ensure that the adapter can handle enough requests, but yet not allow requests to overwhelm the system.What can the application developer do to limit the number of requests that an adapter will handle?
Question37: An application developer is attempting to implement device single sign-on (SSO) as specified in the following example:< securityTests>< mobileSecurityTest name="FormTest">< testDeviceID provisioningType="none"/>< testUser realm="SampleAppRealm"/></mobileSecurityTest></securityTests>< realms><realm name="SampleAppRealm" loginModule="MyLoginModule">< className>com.worklight.core.auth.ext.FormBasedAuthenticator</className></realm>< /realms>< loginModules><loginModule name="MyLoginModule"ssoDeviceLoginModule="WLDeviceAutoProvisioningLoginModule">className>com.worklight.core.auth.exp.NonValidatingLoginModule</className>< /loginModule>< /loginModules>Upon testing the configuration, the developer finds unexpected results, such as the Worklight project failing to start.What does the application developer need to do to bring the SSO configuration to a consistent state?
Question38: While developing an Android-based hybrid application, the application developer is required to use a pure Native Activity before navigating to a Web view.Which interface should the application developer implement for the Activity that has the Web view?
Question39: An application developer has started configuring header-based authentication for an application. So far, the developer has implemented the security test and login module as follows:< securityTests>< customSecurityTest name="HeaderTest">< test realm="RealmHeader" isInternalUserID="true" />< /customSecurityTest>< /securityTests>< loginModules>< loginModule name="HeaderLogin">< className>com.worklight.core.auth.ext.HeaderLoginModule</className>< parameter name="user-name-header" value="username"/></loginModule></loginModules>Which of the following is a valid realm definition that the application developer can use for this header login module?
Question40: An application developer is implementing the server-side components for custom device provisioning. To accomplish this task, the developer has created the adapter named ProvisioningAdapter. Finally, two functions must be added to complete the task.What must the two functions do that the application developer should add to the adapter?
Question41: An application developer is developing a hybrid application and has added an Android environment. The developer implemented a native page in order to obtain information from the device and now needs to return the control and information into a new web view to continue with the application flow.To do this, the native page should be implemented as an Java Activity and declared on a mapping file in the Worklight project.What is the name of the file where the application developer must declare the Java Activity?
Question42: An application developer intends to deliver a notification to a particular user with ID 'TestUser".Which server call should the application developer use to deliver the notification?
Question43: What is the purpose of the Application Center?The Application Center is:
Question44: An application developer is implementing form-based authentication. The developer has created a challenge handler object to handle challenges from the SampleAppRealm by invoking createChallengeHandler on WL.Client as follows:var sampleAppRealmChallengeHandler = WL.Client.createChallengeHandler("SampleAppRealm");Which function of the challenge handler must the application developer implement?
Question45: An application developer wants to use Simple Data Sharing to pass data to another application that is currently being developed.What must the application developer do in Worklight Studio to enable this capability for this hybrid application?
Question46: An application developer is developing a native iOS application. The application developer needs to call a web service to retrieve application data. In order to do that, the application developer will call an existing Worklight adapter that retrieves this data.
Question47: An application developer has implemented the following security test to protect a mobile application.< mobileSecurityTest name="mobileTest">< testUser realm="myMobileLoginForm"/>< testDeviceID provisioningType="none" /></mobileSecurityTest>The corporate security team has recently learned about cross-site request forgery (XSRF) attacks against the company's website. The corporate security team wants to prevent further attacks and has asked the developer to protect the mobile application against XSRF attacks.What step must the application developer take to protect against XSRF attacks?
Question48: Which one of the following correctly describes the content of the corresponding Worklight Application folder?
Question49: An application developer wants to use the Rich Page Editor to create and edit web pages for a hybrid application. The application developer wishes to use the Mobile Navigation view to manage the mobile views in the application.Which action can the application developer perform inside the Mobile Navigation view?
Question50: An application developer wants to retrieve the client-side logs of an Android application that is malfunctioning in the production environment.When is the captured log data sent to the server?
Question51: An application developer is attempting to update specific portions of a hybrid application by utilizing the direct update feature.Which components can the application developer update using the direct update feature without having to rebuild and deploy a new binary of the application?
Question52: An application developer needs to update the web resources for a deployed application. The developer is exploring the use of Direct Update to deliver the updated web resources directly to the deployed application without uploading a new version of the application to the Apple App Store and Android Market.The developer has located an explicit call to check for direct updates in the application code as follows:WL.Client.login("wl_directUpdateRealm", {onSuccess:..., onFailure:...}) Which security realm configuration allows the application developer to use Direct Update to deliver the updated web resources, only when the explicit call to check for direct updates in the application code is executed?The application is protected with a:
Question53: An application developer has implemented certificate based authentication. The developer wants to enforce that the application immediately authenticates with a certificate when connecting to the Worklight server.What must the application developer do to configure this security setting for the Android environment?
Question54: An application developer has created a Worklight Adapter that retrieves data from a remote RSS feed and returns the results. The developer is not seeing the expected results in the browser. The developer decides to add debug logging to the code in order to determine why the expected results are not seen.Where can the application developer locate the output from the debug logging?In the:
Question55: The application developer wants to use the Mobile Browser Simulator to preview and test Worklight applications.Which of the following application environments can the application developer preview on the Mobile Browser Simulator?
Question56: The application developer needs to test the Worklight application on a remote server. In Worklight Studio, the application developer configures the remote server by right clicking on the {app_name} folder and selecting Run As > Build Settings and Deploy Target.Which step does the application developer need to perform to ensure the server configuration changes are reflected in the application?
Question57: An application developer has built a hybrid application using Worklight Studio and has added an Android environment to the application. The application developer has now built and deployed the Android environment to the Worklight Server.In the application developer has correctly set up and configured their Android development environment, which of the following steps would they need to complete in order to the run the application on the Android emulator?
Question58: An application developer wants to use the IBM Mobile Test Workbench to automate the creation, execution, and analysis of functional tests for a Worklight hybrid application on Android devices. The application developer has successfully installed and configured the IBM Mobile Test Workbench. After creating a test project, the application developer is now ready to generate a test from recording a session on the Android device.After selecting the application in the list of managed applications available in the Test Workbench Android client view, what must the application developer do to generate the test?
Question59: A mobile application developer needs to modify the direct update interface of an application to set a custom message requested by a client. To accomplish this task, the application developer needs to use the handleDirectUpdate function.How should the application developer implement this requirement?
Question60: Which Worklight adapter is used to execute stored procedures in a database?
Question61: An application developer has determined that Worklight does not provide an authenticator that meets the complex needs of the application being developed. It is decided that the developer must implement a custom authenticator.Which interface must the application developer implement?
Question62: An application developer is ready to deploy a hybrid application to a production server. The Worklight administrator notifies the developer that the application needs to report statistics to the Operational Analytics server.What must the application developer do to ensure analytics data is sent to the Operational Analytics server?
Question63: An application developer has created an SQL adapter for a hybrid application.Which artifacts were automatically generated when the application developer created the SQL adapter?
Question64: An application developer develops an adapter which invokes Java code for some of the custom security functions.Which of the following Java packages is a valid domain name that can be referenced from the adapter code?
Question65: An IT company uses a native Android application to manage financial data. The company now wants to use the same application for iOS mobile devices. The application architect decided to use Worklight Foundation to generate a common User Interface for Android and iOS platforms.The application developer is required to create this new common User Interface as a Web and add it to the existing Android application.What steps should the application developer perform to add the new Web View to the existing Android application?
Question66: An application developer is using Worklight skins to support multiple from factors on an Android based hybrid application that will run on phones and tablet devices. The developer built skins that modify the color and size of the text in the application based on the device that it is running on. To switch between them, the developer needs to modify a file in the Worklight project.What is the name of the file that the application developer needs to modify to set the skins to apply at runtime?
Question67: An application developer has an adapter deployed to the Worklight Server that is no longer needed.What must the application developer do to get rid of the adapter?
Question68: Which characteristic(s) of an application map to the respective development approaches?Characteristics of the Application1. The application is written for a specific platform and runs on that platform only.2. The application runs inside the browser of the mobile device, and uses standard technologies such as HTML5, CSS3, and JavaScript.3. The application runs inside a native container and uses the browser engine to display the application interface.4. The application is not distributed through an application store.Development Approach (see exhibit)
Question69: An application developer needs to create a new Worklight project in the current working directory by using the IBM Worklight Command Line Interface (CLI). The developer needs to create the project with the name"WLProject".To do so, which command should the application developer use?
Question70: A client requires to change the default IBM splash image of an Android Worklight application.How can the application developer implement this requirement?
Question71: An application developer is working on a hybrid application. The application developer needs to display a modal message to the user indicating that data is being loaded, while this data is retrieved from the server.Which code snippet can the application developer use to display this message?